package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 精彩视频对象 xhlj_wonderful_video
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_wonderful_video")
@Entity
@Table(name = "xhlj_wonderful_video")
@SailTable(comment = "精彩视频表", indexs = {
    @SailIndex(name = "idx_del_flag", type = IndexType.BTREE,
       columns = {"del_flag"}
    ),    @SailIndex(name = "idx_create_time_user_id", type = IndexType.BTREE,
       columns = {"create_time"}
    ),    @SailIndex(name = "idx_user_id", type = IndexType.BTREE,
       columns = {"create_by"}
    )}
)
public class XhljWonderfulVideo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_wonderfulVideo_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_wonderfulVideo_list";
    /**
     * 精彩视频Id
     */
    @TableId(value = "wonderful_video_id", type = IdType.AUTO)
    @Id
    private Integer wonderfulVideoId;
    /**
     * 大会id
     */
    @SailColumn(comment = "大会id",type = "int", defaultValue = "NULL")
    @Column(name = "conference_info_id")
    private Integer conferenceInfoId;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @SailColumn(comment = "创建人sys_user（大会管理员/活动负责人）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 精彩视频
     */
    @Column(name = "wonderful_video_file")
    @SailColumn(comment = "精彩视频",type = "text", defaultValue = "NULL")
    private String wonderfulVideoFile;
    /**
     * 精彩视频描述
     */
    @Column(name = "wonderful_video_description")
    @SailColumn(comment = "精彩视频描述",type = "varchar(100)", defaultValue = "NULL")
    private String wonderfulVideoDescription;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标志（0未删除，2已删除）
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标志（0未删除，2已删除）",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
